#include "doubleBlocks.h"


doubleBlocks::doubleBlocks(void)
{
}


doubleBlocks::~doubleBlocks(void)
{
}

doubleBlocks* doubleBlocks::createDoubleBlocks(cocos2d::Layer* layer)
{
	doubleBlocks* blocks=new doubleBlocks();
	blocks->autorelease();

	if (!blocks->init(layer))
	{
		return NULL;
	}
	

	return blocks;
}

bool doubleBlocks::init(cocos2d::Layer* layer)
{
	if (!Node::init())
	{
		return false;
	}

	block_up=obstaclesBlock::createBlock(0);
	layer->addChild(block_up);


	block_down=obstaclesBlock::createBlock(1);
	layer->addChild(block_down);

	return true;
}
